package controle;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import presentation.ModuleDialog;

import abstraction.Cours;

/** controleur appelé lors de l'ajout d'un module
 * 
 * @author PICOSSON
 *
 */


public class ControlJButtonPlusModule implements ActionListener {

	private Cours modele;
	private Frame parent;

	public ControlJButtonPlusModule(Frame parent, Cours modele) {
		this.modele = modele;
		this.parent = parent;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		ModuleDialog moduleDialog = new ModuleDialog(parent, modele, true);
		moduleDialog.setVisible(true);
	}

}
